//
//  HYBaseHandler.h
//  Around
//
//  Created by 华谕 on 2017/6/13.
//  Copyright © 2017年 HUYU. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HttpTool.h"

//处理理事件成功
typedef void(^SuccessBlock)(id obj);

//处理事件失败
typedef void(^FailedBlock)(NSError *error);

typedef enum{
    GET,
    POST
} RequestType;


@interface HYBaseHandler : NSObject

//注册请求验证码/user/code4register
+ (void)requestCodeRegisterParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//用户注册
+ (void)requestRegisterParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//用户登录
+ (void)requestUserLoginParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;
//工厂信息保存
+ (void)requestFactoryMessageSaveParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//工厂信息地址
+ (void)requestAreaParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//获取用户登录信息
+ (void)requestUserMessageParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//公钥 /c/rsaKey/publicKey
+ (void)requestPublicKeyParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//获取所有城市
+ (void)requestCityParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//热门城市
+ (void)requestHotCityParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//获取产线列表
+ (void)requestProductionLineParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//添加产线
+ (void)requestSaveProductionLineParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//我的钱包
+ (void)requestMineWalletParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//交易明细
+ (void)requestWalletTransactionParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//修改提现密码时请求验证码
+ (void)requestGetUpdateWithdrawPswCodeParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//修改提现密码
+ (void)requestupdateWithdrawPswParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//提现
+ (void)requestWithdrawAddParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//银行卡列表
+ (void)requestBankCarListParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//解除银行卡绑定
+ (void)requestBankCarddeleteParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//解除银行卡绑定
+ (void)requestCodeBankCardParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//添加银行卡
+ (void)requestAddBankCarParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//银行列表
+ (void)requestBankListParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//是否设置了提现密码
+ (void)requestPasswordSettingParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//退出登录
+ (void)requestUserLogoutParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//修改密码时的验证码
+ (void)requestGetUpdatePswCodeParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//修改密码
+ (void)requestUpdatePswParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//用户信息
+ (void)requestGetUserInfoParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//实名认证(保存)
+ (void)requestIdentitySaveParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//实名认证(获取信息)
+ (void)requestIdentityMineParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//工厂类型
+ (void)requestCategoryFindAllParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//工厂产品
+ (void)requestProductFindAllParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//获取工厂信息
+ (void)requestFactoryInfoParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//意见反馈
+ (void)requestmsgFeedbackParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//添加设备
+ (void)requestAddMachineParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//关于
+ (void)requestAboutUsParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//客服电话
+ (void)requestkefuPhoneParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//帮助中心
+ (void)requestHelpAllParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//选择工种
+ (void)requestWorkKindParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//选择产线类型
+ (void)requestProduceLineKindParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//获取所有产线列表
+ (void)requestAllProductionLineParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//产线详情
+ (void)requestProduceLineDetailParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//项目订单列表
+ (void)requestProjectListParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//项目评价分数列表
+ (void)requestEvaluateListParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//项目详情
+ (void)requestProjectDetailParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//项目设置空闲日期保存
+ (void)requestSaveWorkerFreeDateParmers:(NSArray *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//项目设置我的空闲日期
+ (void)requestWorkerFreeDateParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//验收项目
+ (void)requestProjectCheckParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//系统消息
+ (void)requestMessageMineParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//系统消息详情
+ (void)requestMessageDetailParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//特种工人列表
+ (void)requestWorkFindAllParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//评价保存
+ (void)requestEvaluateSaveParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//招工启事
+ (void)requestRecruitmentNoticeParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//雇主
+ (void)requestEmployerSelectParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//工厂详情
+ (void)requestContractorDetailParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//报名
+ (void)requestRecommendAddParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//查看项目详情
+ (void)requestProjectSelectParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//地图
+ (void)requestContractorMapParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//支付
+ (void)requestPayParmers:(NSDictionary *)parmers PayType:(NSInteger)payType Success:(SuccessBlock)success failed:(FailedBlock)failed;

//消息项目详情保存
+ (void)requestQuotationSaveParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//接受消息
+ (void)requestQuotationAcceptParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//拒绝消息
+ (void)requestQuotationRefuseParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//我的收藏
+ (void)requestMyCollectParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//日报列表 /worker/daily/page
+ (void)requestWorkerDailyParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//获取工人项目信息
+ (void)requestWorkerProjectParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//获取工人评价信息
+ (void)requestWorkerEvaluateParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//获取工人信息
+ (void)requestGetWorkerMessageParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//获取雇主项目信息
+ (void)requestEmployerProjectParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//获取雇主评价信息
+ (void)requestEmployerEvaluateParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//获取雇主信息
+ (void)requestGetEmployerMessageParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//发布需求
+ (void)requestSendRequirementParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//生产类型
+ (void)requestProduceCategoryParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//生产产品
+ (void)requestProduceProductParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//项目日报确定
+ (void)requestDailySaveParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//选择工人(系统推荐)
+ (void)requestWorkerListParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//选择工人(报名)
+ (void)requestApplyWorkerListParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//选择工人(确认)
+ (void)requestWorkerEnsureParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//选择工厂
+ (void)requestContactorMatchListParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//选择工厂(确认)
+ (void)requestContactorEnsureParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//邀请工人
+ (void)requestInviteWorkerParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//支付项目
+ (void)requestPayProjectParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//通知
+ (void)requestMessageInitParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//通知Test
+ (void)requestMessageTestParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//收藏，取消收藏 /worker/collect/addOrRemove
+ (void)requestCollectAddOrRemoveParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//协议
+ (void)requestGetRegistAgreeMentParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//搜索工厂
+ (void)requestSearchContactorMatchListParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;


//接受消息2
+ (void)requestQuotationAcceptSecondParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//接受消息3
+ (void)requestQuotationAcceptThirdParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//拒绝消息2
+ (void)requestQuotationRefuseSecondParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//拒绝消息3
+ (void)requestQuotationRefuseThirdParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//通用表单
+ (void)requestWithTheFormUrl:(NSString *)url Parmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//通用Json
+ (void)requestWithJsonUrl:(NSString *)url Parmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//消息是否未读
+ (void)requestMessageIsReadParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

@end
